<template>
  <dt-modal-edit ref='modal' title='新建奖金单' :label-width='130' :width='500' @ok='onOk'>
  </dt-modal-edit>
</template>

<script>
  import Opt from '../opt/NewOpt.js'
  
  export default {
    data() {
      return {
        info: {},
      }
    },
    mounted() {
    },
    methods: {
      show(info) {
        this.info = {
          ...info,
          type: null,
          auditContent: null
        }
        this.$refs.modal.show(new Opt(this.info))
      },
      hide() {
        this.$refs.modal.hide()
      },
      onOk() {
        this.$router.push({
          path: `bill/edit`,
          query: {
            // commissionId: item.commissionId
          },
        })
      }
    }
  }
</script>

<style>
</style>
